#ifndef __GLOBALS_H__
#define __GLOBALS_H__

#include <windows.h>
#include <string>
#include <sstream>
#include <iostream>
#include <conio.h>
#include <fstream>
#include <string>
#include <sstream>
#include <cstdlib>
#include <iomanip>

#define COMMON_LVB_GRID_HORIZONTAL 0x0400
#define COMMON_LVB_GRID_LVERTICAL 0x0800
#define COMMON_LVB_GRID_RVERTICAL 0x1000
#define COMMON_LVB_REVERSE_VIDEO 0x4000
#define COMMON_LVB_UNDERSCORE 0x8000

extern const int STYLE_NONE;
extern const int STYLE_CORNER_SPLIT;
extern const int STYLE_FULL_SPLIT;
extern const int STYLE_CORNER_BORDER;
extern const int STYLE_FULL_BORDER;
extern const int STYLE_FULL_BACKGROUND;

extern const int EDITMODE_SET;
extern const int EDITMODE_ADD;
extern const int EDITMODE_DEL;

extern const int DATASIZE;
extern const int MOVESIZE;

extern COORD defOffset;
extern SMALL_RECT defShrink;

extern int codePtr;
extern std::string input;
extern int inputPtr;
extern std::string output;
extern unsigned char data[];
extern int dataPtr;
extern int move[];
extern int moveCnt;
extern bool run;
extern bool back;
extern std::stringstream ss;
extern HANDLE stdBuf;
extern HANDLE helpBuf;
extern HANDLE doubleBuf;

extern std::string helpStr;

extern std::string code;

#endif // __GLOBALS_H__
